/*
 * Copyright Aduna (http://www.aduna-software.com/) (c) 2008-2009.
 *
 * Licensed under the Aduna BSD-style license.
 */
package edu.tju.rdfbase.store.inferencer.helpers;

import edu.tju.rdfbase.store.NotifyingStore;
import edu.tju.rdfbase.store.StoreConnection;
import edu.tju.rdfbase.store.helpers.NotifyingStoreBase;
import edu.tju.rdfbase.store.helpers.StoreBase;
import edu.tju.rdfbase.store.helpers.StoreConnectionTracker;
import edu.tju.rdfbase.store.inferencer.InferencerConnection;
import edu.tju.rdfbase.store.StoreException;

/**
 * This class extends {@link StoreBase} with {@link NotifyingStore} support.
 * 
 * @author Arjohn Kampman
 * @author James Leigh
 */
public abstract class InferencerStoreBase extends NotifyingStoreBase {

	@Override
	protected StoreConnectionTracker createStoreConnectionTracker() {
		return new InferencerConnectionTracker();
	}

	@Override
	protected StoreConnection wrapConnection(StoreConnection con)
		throws StoreException
	{
		return new PreconditionInferencerConnection((InferencerConnection)con);
	}
}
